import ajax from './index'



export function pdd_cat_list() {
    return ajax({
        url: "/backend/pdd/category",
        method: "get"
    });
}

export function pdd_list(condition) {
    if(!condition) {
        condition = {
            pageNum: 1,
            pageSize: 100
        }
    }
    return ajax({
        url: "/backend/pdd",
        method: "get",
        params: condition
    });
}

export function pdd_pid_list() {
    return ajax({
        url: "/backend/pdd/pid",
        method: "get"
    });
}

export function pdd_create(param) {
    return ajax({
        url: "/backend/pdd/create",
        method: "post",
        data: param
    });
}